package com.jvm07.类加载器01;

public class User {

    private int a=10;


    public static void main(String[] args) {
        User user = new User();
        Class<? extends User> userClass = user.getClass();
        ClassLoader classLoader1 = userClass.getClassLoader();
        System.out.println(classLoader1);//应用程序加载器
        System.out.println(classLoader1.getParent());//拓展类加载器
        System.out.println(classLoader1.getParent().getParent());//根加载器


    }

}
